|
Confluence Docs 3.0 : Obtaining Confluence Instance Metrics
This page last changed on Sep 03, 2009 by jseverino.
This page can be used as a guide to obtain detailed performance information of your instance. Please read the Confluence Reporting HOWTO for information about the reporting capabilities of Confluence, including the {sql} macro, charting and security. Users and usageUsersWhat is the typical number of concurrent active users i.e. number of concurrent requests being processed?
– light viewer UsageWhat is the average number of pages created per day, and similar usage stats (AWStat reports are a good starting place when User Access Logging is enabled) Searches: http://<host>/dosearchsite.action Database usage statistics
Note: specify the date range Table sizesSELECT relname, reltuples, relpages FROM pg_class ORDER BY relpages DESC ;
The column reltuples is the number of rows in the table, relpages is the number of 8 KB pages used by the table. Indexes are included in this list as well. In this example, the bodycontent table includes 170462 rows and is approximately 142 MB (18197 * 8 KB) in size. Content created per day
select contenttype, min(number_of_changes), max(number_of_changes), avg(number_of_changes)
from (
select contenttype, date_trunc('day', creationdate) , count(*) as number_of_changes
from content
where content.creationdate > date '2007-01-01' and version = 1
group by contenttype, date_trunc('day', creationdate)
) as dates
group by contenttype
Content edited per day
select contenttype, min(number_of_changes), max(number_of_changes), avg(number_of_changes)
from (
select contenttype, date_trunc('day', lastmoddate) as changedate, count(*) as number_of_changes
from content
where content.creationdate > date '2007-01-01'
group by contenttype, date_trunc('day', lastmoddate)
) as dates
group by contenttype
Number of existing pagesselect contenttype, count(*) from content group by content.contenttype
Number of links per page
select http, max(linkcount), min(linkcount), avg(linkcount), stddev_pop(linkcount), stddev_samp(linkcount), var_pop(linkcount), var_samp(linkcount)
from
(
select contentid, (links.destspacekey = 'http') as http, count(*) as linkcount
from links group by contentid, (links.destspacekey = 'http')
) as links_per_page
group by http
Number of characters per content bodyselect max(blength), min(blength), avg(blength), stddev(blength), variance(blength) from (select length(body) as blength from bodycontent) as bodylengths where blength > 0
(Note this query takes a long time to execute.) Number of characters per page body
select max(blength), min(blength), avg(blength), stddev(blength), variance(blength)
from (select length(bodycontent.body) as blength
from bodycontent, content
where bodycontent.contentid = content.contentid and contenttype='PAGE'
) as bodylengths
where blength > 0
Attachmentsselect count(*), max(filesize), min(filesize), avg(filesize), stddev(filesize), sum(filesize) from attachments;
Attachments per pageList the stats for attachments per page, only for those pages that actually have attachments. select count(*) as pages_with_attachments, avg(attachments_per_page), max(attachments_per_page), min(attachments_per_page), stddev(attachments_per_page) from ( select count(*) as attachments_per_page from attachments group by attachments.pageid ) as app
Configuration / plugin data stored in Bandana
ContentIt is essential to obtain the typical configuration of database (#pages, #spaces, #registered users, etc), based on Global Stats Plugin Home directory usage statisticsOn Unix-based environments like Linux and Mac OS X, you can use the following commands to gather information about the home directory usage. Size of home directory componentsdu -sh /path/to/home/directory/*
5.9G attachments 4.0K backups 13M bundled-plugins 8.0K config 4.0K confluence.cfg.xml 216K fonts 3.4M framework-bundles 2.9G index 12M plugin-cache 114M plugins-temp 412K resources 4.0K restore 201M temp 84M thumbnails 222M viewfile Number of attachments, including all versionsfind /path/to/home/directory/attachments -type f | wc -l |
| Document generated by Confluence on Nov 05, 2009 23:27 |